home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / ggraph / RCS / ggraphdata.c,v < prev    next >
Text File  |  1989-07-12  |  2KB  |  84 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     89.07.12.01.40.43;  author douglis;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @baseline from monet (?)
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @#include <stdio.h>
  27. #include <errno.h>
  28. #include "ggraph.h"
  29. #include "commands.h"
  30. #include "ggraphdefs.h"
  31.  
  32. char *commands[MAXCOMMAND] = {"xgr", "ygr", "xax", "yax", "xti", "yti",
  33.  "xtl", "ytl", "gti", "das", "xla", "yla", "tif", "dae", "xst", "yst",
  34. "lty", "lcu", "lof", "lsy", "dra", "lla", "llp", "sla","fra", "frt",
  35. "xgt", "ygt", "gtp", "ytp", "xtp", "tis", "xts", "yts", "lth", "typ",
  36. "xpr", "ypr", "syz", "ssw", "tft", "xft", "yft", "rea", "ver", "lox", 
  37. "loy", "log", "qui", "xfi", "yfi", "fir", "com", "cro", "crx", "cry",
  38. "leg", "leb", "les", "sle", "slh", "slf", "sls", "xtf", "ytf", "xtz",
  39. "ytz", "sxt", "syt", "llf", "lls", "xle", "yle", "sun"};
  40.  
  41. char *justify_names[] = { "BOTLEFT", "BOTRIGHT", "CENTCENT", 
  42.                  "", "", "", "", "", "", "", 
  43.                  "TOPLEFT", "TOPCENT", "TOPRIGHT", 
  44.                  "CENTLEFT", "CENTRIGHT", "BOTCENT" };
  45.  
  46. int ycharsz[5] = {0, 10, 14, 22, 30};
  47. int xcharsz[5] = {0, 6, 8, 10, 15};
  48. int descenders[5] = {0, 1, 3, 2, 6};
  49. struct agraph graph[MAXGRAPH];
  50.  
  51. float   graphx, graphy;        /* a point on the graph */
  52.  
  53. int     curline = -1;
  54. int     curgraph = -1;
  55. int     errno;
  56.  
  57. char    firstline[] = FIRSTLINE; /* first line of gremlin file */
  58. char    sfirstline[] = SFIRSTLINE; /* first line of gremlin file */
  59.  
  60. int     xgridf = TRUE;
  61. int     ygridf = TRUE;
  62. int     xaxisf = TRUE;
  63. int     yaxisf = TRUE;
  64. int     xtickf = TRUE;
  65. int     ytickf = TRUE;
  66. int     xticklf = TRUE;
  67. int     yticklf = TRUE;
  68. int     titlef = TRUE;
  69. int     framef = FALSE;
  70. int     symbsw = TRUE;
  71. int     crossxsw = FALSE;
  72. int     crossysw = FALSE;
  73. int     legendf = FALSE;
  74. int     legendbox = FALSE;
  75. int     legendside = TRUE;
  76.  
  77. FILE *outfile = NULL;        /* output file */
  78. FILE *fopen ();
  79.  
  80. int debug;            /* debbuging switch */
  81. char graphname[40];
  82. int version = SUN_GREMLIN;    /* we are for the suns */
  83. @
  84.